<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>1213</title>
</head>
<body>

<script>
  var ws = new WebSocket('wss://swoole.gzyxkk.com:9502');
  ws.onopen = function () {
    console.log('链接成功')
  };
  ws.onmessage = function (e) {
    console.log(e.data);
  };
</script>
</body>
</html>